﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using WeatherData;

namespace ATCAssistant
{
    public class Runway
    {
        public Runway() { }
        public Runway(XElement xml)
        {
            this.Identifier = xml.Element("id").Value;
            this.Heading = float.Parse(xml.Element("heading").Value);
            this.Length = int.Parse(xml.Element("length").Value);
            this.Width = int.Parse(xml.Element("width").Value);
        }

        public string Identifier { get; internal set; }
        public float Heading { get; internal set; }
        public int Length { get; internal set; }
        public int Width { get; internal set; }
    }
}
